//package com.cebbank.sz.cebtemplate.service.Impl;
//
//import com.cebbank.sz.cebtemplate.dao.UserMapper;
//import com.cebbank.sz.cebtemplate.model.po.User;
//import com.cebbank.sz.cebtemplate.service.UserService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cache.annotation.CacheConfig;
//import org.springframework.cache.annotation.Cacheable;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
///**
// * @author jaco
// * @create 2019-11-29 上午10:15
// **/
//@CacheConfig(cacheNames = "user")
//@Service
//public class UserServiceCachedImpl implements UserService {
//
//    @Autowired
//    private UserMapper userMapper;
//
//    @Override
//    @Cacheable(cacheNames = "user")
//    public String showUsers() {
//        List<User> userList = userMapper.selectList(null);
//        String result="";
//        for(User s:userList){
//            result+= s.toString()+"\n";
//        }
//        return result;
//    }
//}